package com.aaa.order.controller;/**
 * Created by Windows10 on 2020/1/7
 */

import com.aaa.order.service.OrderItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @FileName: OrderItemController
 * @Description:
 * @Author: Lk
 * @CreateTime: 2020/1/7 20:27
 * @Version: 1.0.0
 */
@RestController
public class OrderItemController {
    @Autowired
    private OrderItemService orderItemService;

    @GetMapping("orderItemList")
    public Object list(@RequestParam Map map){
        return orderItemService.getListByParam(map);
    }

    @GetMapping("orderItemAdd")
    public Object add(@RequestParam Map map){
        return orderItemService.add(map);
    }

    @GetMapping("orderItemUpdate")
    public Object update(@RequestParam Map map){
        return orderItemService.update(map);
    }

    @GetMapping("orderItemDelete")
    public Object delete(@RequestParam Map map){
        return orderItemService.delete(map);
    }
}
